package com.zlp.mall.upms.api.feign.factory;

import com.zlp.mall.core.utils.api.Result;
import com.zlp.mall.upms.api.feign.FeignOperLogService;
import feign.hystrix.FallbackFactory;

public class FeignOperLogServiceFallbackFactory implements FallbackFactory<FeignOperLogService> {


    @Override
    public FeignOperLogService create(Throwable cause) {

        return (operLogReq, from) -> Result.feignUpmsServiceFailed();
    }


}
